package BigIntegerdemo;

import java.math.BigInteger;
import java.util.Random;

public class demo1 {
    public static void main(String[] args) {
        Random r = new Random();
        BigInteger bigInteger = new BigInteger(4,r);
        System.out.println(bigInteger);
        BigInteger b1 = new BigInteger("999999999999999999999999999999999999999999999999999999999999999999999999999999999");
        System.out.println(b1);
        BigInteger b2 = BigInteger.valueOf(5123510321546153024L);
        System.out.println(b2);
    }
}
